import {messages} from "share/common";

const dataSources = {
  'relateApplicationTree':[
    { key: '1-1', title: messages('my-account.key278')/*账套级表单*/, children: [], selectable: false },
    { key: '2-1', title: messages('my-account.key279')/*公司级表单*/, children: [], selectable: false }
  ],
  // 单位信息
  'unitInfo': {
    day: messages('my-account.key109'/*天*/),
    weak: messages('my-account.key110'/*周*/),
    month: messages('my-account.key111'/*月*/),
    person: messages('my-account.key112'/*人*/),
    unit: messages('my-account.key113'/*个*/),
    th: messages('my-account.key114'/*次*/)
  },
  //人员信息展示选项
  'showUserInfoOptions': [{
    key: 'Y',
    title: messages('my-account.key308')/*完整*/,
    value: messages('my-account.key308')/*完整*/ + '-' + messages('my-account.key309')/*发票上显示了姓名和身份证号*/
  }, {
    key: 'N',
    title: messages('my-account.key310')/*不完整*/,
    value: messages('my-account.key310')/*不完整*/ + '-' + messages('my-account.key311')/*发票上姓名和身份证未全部显示*/
  }],
  'showUserInfo': {
    Y: messages('my-account.key308')/*完整*/ + '-' + messages('my-account.key309')/*发票上显示了姓名和身份证号*/,
    N: messages('my-account.key310')/*不完整*/ + '-' + messages('my-account.key311')/*发票上姓名和身份证未全部显示*/
  },
  //发票来源
  'cardsignTypeInfo': {
    APPCARDSIGN: messages('my-account.key44')/*微信*/,
    JSCARDSIGN: messages('my-account.key44')/*微信*/,
    WXFWCARDSIGN: messages('my-account.key44')/*微信*/,
    ALICARDSIGN: messages('my-account.key45')/*支付宝*/,
    HAND: messages('my-account.key289')/*手录*/,
    OCR: messages('my-account.key290')/*拍照识别*/,
    SCANNING: messages('my-account.key291')/*扫二维码*/,
    MAIL: messages('my-account.key314')/*邮箱导入*/
  },
  internalOptions: [
    { key: "Y", value: messages("common.yes") /*是*/ },
    { key: "N", value: messages("common.no") /*否*/ },
  ],
  agentTagOptions: [
    { key: "Y", value: messages("common.yes") /*是*/ },
    { key: "N", value: messages("common.no") /*否*/ },
  ],
  domesticPassengersOptions: [
    { key: "Y", value: messages("common.yes") /*是*/ },
    { key: "N", value: messages("common.no") /*否*/ },
  ],
  showInternalInfo: {
    Y: messages("common.yes") /*是*/,
    N: messages("common.no") /*否*/,
  },
  showDomesticPassengers: {
    Y: messages("common.yes") /*是*/,
    N: messages("common.no") /*否*/,
  },
  //annotate type 为 mileage 的 messageKey（给app用）
  annotateMileageMessageKey: [
    "depart.time", //出发时间
    "depart.place", //出发地
    "depart.place.original", //出发原定位
    "arrive.time", //到达时间
    "destination", //目的地
    "destination.original", //到达原定位
    "reference.amount", //参考总价
  ],
  receiptFieldItemMap: {
    image: "slicingAttachmentOID",
    invoiceCode: "billingCode",
    invoiceNumber: "billingNo",
    invoiceDate: "billingTime",
    priceTaxAmount: "fee",
    taxAmount: "tax",
    nonVATinclusiveAmount: "feeWithoutTax",
    owner: "receiptOwner",
    personInfo: "showUserInfo",
    internal: "internalStaff",
    issuedReceipt: "agentTag",
  },
  ocrTypeMap: {
    image: {
      accept: "image/*",
      attachmentType: "INVOICE_IMAGES",
      text: messages("expense-1.key193") /*识别发票图片*/,
    },
    pdf: {
      accept: "application/pdf",
      attachmentType: "PDF",
      text: messages("expense-1.key194") /*识别发票PDF*/,
    },
    ofd: {
      accept: ".ofd",
      attachmentType: "PDF",
      text: messages("expense-1.key195") /*识别发票OFD*/,
    },
  },
};
export default dataSources
